package org.NooLab.itexx.app.controller;

import org.NooLab.itexx.ITexxWindowCommons;
import org.NooLab.utilities.logging.PrintLog;

public class FoundListGenerator {

	
	SessionManager sessionMgr;
	private ITexxWindowCommons appCommons;
	private PrintLog out;
	private ScoredSerDocuments scoredSerDocs;
	
	
	// ========================================================================
	public FoundListGenerator( SessionManager sMgr,
							   GeneralQueueServiceIntf generalQueueServiceIntf) {
		sessionMgr = sMgr;
		appCommons = sessionMgr.appCommons;
		
		out = sessionMgr.out;
	}
	// ========================================================================
	
	
	public void update() { //use observer pattern
		// 
		scoredSerDocs = sessionMgr.getScoredSerDocuments();
		
		int n = scoredSerDocs.items.size();
		
		out.printErr(3, ">>>>> now there are "+n+" scored documents waiting for being prepared for display...");
		
	}

}
